export default function({randomize=0.2,price=-1,gap=0.2}, balancedPrice:number) {
  var randomized = (1+randomize*2*(Math.random()-0.5));
	var gapArray:number[] = Array.isArray(gap) ? gap : [gap,gap];

	var gaps = gapArray.map((gap:any)=>1+gap*randomized);
	if (price!=-1) {
		if (price>balancedPrice) {
			gaps[1] = price / balancedPrice;
		} else {
			gaps[0] = balancedPrice / price;
		}
	}
  return gaps;
}
